package org.performancetracker;

import org.performancetracker.api.Tracker;
import org.performancetracker.api.Aggregator;
import org.performancetracker.simple.TrackerImpl;

/**
 * Basic TrackerFactory implementation.
 *
 * Other implementation can provide their own implementations of this class or provide other factories.
 *
 * @author: jaronschut
 */

public class TrackerFactoryImpl {

    /**
     * Create a tracker with a specific tracker aggregator.
     * In this implementation this is the name of the slf4j logger.
     *
     * @param aggregator
     * @return
     */
    public Tracker createTracker(Aggregator aggregator) {
        return new TrackerImpl(aggregator);
    }
}